﻿@model IEnumerable<NapCardOnline.Models.Commission>

@{
    ViewBag.Title = "Chính sách chiết khấu";
}

<fieldset>
    <legend>@ViewBag.Title</legend>
    <div class="tabbable center">
        <!-- Only required for left/right tabs -->
            <table class="table table-striped">
                <thead>
                    <tr>
                        <th>
                            Commission ID
                        </th>
                         <th>
                            Tên dịch vụ
                        </th>
                        <th class="span2">
                            Chiết khấu
                        </th>
                        <th>
                            Level
                        </th>
                        <th class="span2">
                            Loại chiết khấu
                        </th>
                   
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model)
                    {
                        <tr>
                            <td>
                                @Html.DisplayFor(modelItem => item.CommissionID)
                            </td>
                             <td>
                                @Html.DisplayFor(modelItem => item.Service.ServiceName)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.CommissionPercent)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.CommissionLevel.CommissionLevelName)
                            </td>
                           
                            <td>
                                @Html.DisplayFor(modelItem => item.CommissionType.CommissionTypeName)
                            </td>
                        </tr>
                    }
                </tbody>
            @*    <tfoot>
                    <tr>
                        <th colspan="4" style="text-align: center;">
                            Có tất cả @(ViewBag.CountTransfer)
                            giao dịch
                        </th>
                        <th style="text-align: center;">
                            Tổng cộng
                        </th>
                        <th>@ViewBag.TotalAmount
                        </th>
                        <th>@ViewBag.TotalCommisionAmount
                        </th>
                        <th>
                        </th>
                    </tr>
                </tfoot>*@
            </table>
        </div>
   
</fieldset>

